/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.risk.setting.service;

import com.hopes.bizz.risk.setting.dto.RiskConfigLsExcelDTO;
import com.hopes.bizz.risk.setting.entity.RiskConfigLsEntity;
import com.hopes.bizz.risk.setting.vo.RiskConfigLsExcelVO;
import com.hopes.bizz.risk.setting.vo.RiskLsIdentifyVO;
import com.hopes.boss.common.service.ExcelService;

import java.util.Map;

/**
 * LS评级结果设置
 *
 * @author pig
 * @date 2023-07-17 19:43:01
 */
public interface RiskConfigLsService extends ExcelService<RiskConfigLsExcelDTO, RiskConfigLsExcelVO, RiskConfigLsEntity> {

    /* LS评估方法 表格数据 */
    Map<String, Object> initMap(RiskConfigLsEntity riskConfigLs);

    /**
     * LS 数据
     * @return 结果集
     */
    RiskLsIdentifyVO initIdentifyData();

    /**
     * 获取LS 风险等级
     * @param riskDesc 风险描述
     * @return          等级
     */
    Integer getLsRiskLevel(String riskDesc);
}
